package edu.sctu.practice.class02.xuqianlan.test.test12;

/**
 * Created by lenovo on 2015/10/18.
 */
public class Car {
    int tires;
    String color;
    int load;

    public Car(int tires) {
        this.tires = tires;
        System.out.println("轮胎个数：" + tires);
    }

    public Car(int tires, String color, int load) {
        this.tires = tires;
        this.color = color;
        System.out.println("颜色:" + color);
        this.load = load;
        System.out.println("汽车载重：" + load + "kg");
    }

    public void upSpeed() {
        System.out.println("车正在加速");
    }

    public void downSpeed() {
        System.out.println("车正在减速");
    }

    public void stop() {
        System.out.println("车已经停止了");
    }


}
